package com.whmskj.xjlhsc.mobie.equipment.controller.fo;

import cn.hutool.core.util.ObjectUtil;
import com.whmskj.xjlhsc.enums.ScEnums.TAG_TYPE;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * @BelongsProject: XJLHSC
 * @BelongsPackage: com.whmskj.xjlhsc.mobie.controller.fo
 * @Author: lk
 * @CreateTime: 2025-06-23
 * @Description: TODO
 * @Version: 1.0
 */
@Data
@Schema(description = "维保监督查询参数")
public class RepairTaskListFo implements Serializable {

    @Schema(description = "工序")
    private String process;

    @Schema(description = "项目类型")
    private Integer itemType;

    @Schema(description = "开始时间")
    private String startDate;

    @Schema(description = "结束时间")
    private String endDate;

    @Schema(description = "标签类型")
    private TAG_TYPE tagType;
    /**
     * 员工ID
     */
    private Integer empId;


    public String getTag() {
        if (ObjectUtil.isNotNull(tagType)) {
            String name = tagType.name();
            return name;
        } else {
            return null;
        }
    }

}
